import request from '@/utils/request'

export default {
  
  //通过地区id获取营业厅列表
  getYytList(id){
    return request ({
        url: `/admin/ggkConfig/get/getAddressYyt/${id}`,
        method: 'get',
      })
  },
  //获取所有地区
  getAddress(){
    return request ({
      url: `/admin/dict/get/Address`,
      method: 'get'
    })
  },
  //查询刮刮卡状态信息
   getGgkType(){
    return request ({
      url: `/admin/dict/get/GgkType`,
      method: 'get'
    })
  },
  //根据id获取营业厅信息
  getYytById(code){
    return request ({
      url: `/admin/ggkConfig/get/getYytName/${code}`,
      method: 'get'
    })
  },
  //根据id获取营业厅奖品库存信息
  getStockById(code){
    return request ({
      url: `/admin/ggkConfig/info/${code}`,
      method: 'get'
    })
  },
  //根据奖品等级获取奖品库存信息
  getLevelById(map){
    return request ({
      url: `/admin/ggkConfig/getLpList`,
      method: 'post',
      params: map
    })
  },
  //获取礼品类型信息
  getJpType(){
    return request ({
      url: `/admin/dict/get/JpType`,
      method: 'get'
    })
  },
  updateGgkConfig(obj){
    return request ({
      url: `/admin/ggkConfig/save`,
      method: 'post',
      data:obj
    })
  },
  //通过手机号查询用户
  getUserInfo(uid){
    return request ({
      url: `/admin/cash/info`,
      method: 'post',
      data:uid
    })
  }
}